package com.simen.hellobytes.socket.helper;

import java.io.IOException;
import java.net.Socket;

/**
 * @author Created by Simen.
 * @date 创建日期 2018/5/30 20:33
 * @modify 修改者 Simen
 */
public interface SocketStatusListener {

    int INIT = 0;
    int ALIVE = 1;
    int WILL_DEAD = 2;
    int DEAD = 3;

    void onStatus(int status, Socket socket) throws IOException;

}
